#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include"list.h"
namespace zkf
{
	void test1()
	{
		list<int> s1;
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		s1.pop_back();
		s1.push_front(5);
		s1.pop_front();
		list<int>::iterator it= s1.begin();
		while (it!=s1.end())
		{
			cout << *it << "->";
			++it;
		}
	}
	void test2()
	{
		list<int> s1;
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		s1.push_back(1);
		list<int> s2(s1);
		list<int>::iterator it = s2.begin();
		while (it != s2.end())
		{
			cout << *it << "->";
			++it;
		}

	}
}
int main()
{
	/*zkf::test1();*/
	zkf::test2();
	return 0;
}